Power adapter and electronic device

ABSTRACT

An electronic device includes a battery, a detecting unit, a comparing unit, a control unit and a charging circuit. The detecting unit is electronically connected to a universal serial bus (USB) interface to detect and determine whether or not the connecting device is a power adapter. The comparing unit outputs a level signal depending upon the comparing unit comparing a input signal received by the USB interface with a voltage threshold. The control unit controls the battery either to be charged by the connecting device through the charging circuit or the battery to supply power to the connecting device through the USB interface according to the level signal.

FIELD

The disclosure relates to electronic devices, and particularly to apower adapter supplying power to an electronic device.

BACKGROUND

Usually, a power adapter supplies power to laptops via universal serialbus (USB) interfaces. Laptops can comprise a variety of interfaces.

BRIEF DESCRIPTION OF THE DRAWINGS

Implementations of the present technology will now be described, by wayof example only, with reference to the attached figures, wherein:

FIG. 1 illustrates a function module of one embodiment of an electronicdevice.

FIG. 2 is a circuit diagram of one embodiment of the electronic deviceof FIG. 1.

FIG. 3 illustrates a function module of one embodiment of a poweradapter.

FIG. 4 is a circuit diagram of one embodiment of the power adapter ofFIG. 3.

FIG. 5 is a circuit diagram of one embodiment of a combination of theelectronic device of FIG. 2 and the power adapter of FIG. 4.

DETAILED DESCRIPTION

It will be appreciated that for simplicity and clarity of illustration,where appropriate, reference numerals have been repeated among thedifferent figures to indicate corresponding or analogous elements. Inaddition, numerous specific details are set forth in order to provide athorough understanding of the embodiments described herein. However, itwill be understood by those of ordinary skill in the art that theembodiments described herein can be practiced without these specificdetails. In other instances, methods, procedures and components have notbeen described in detail so as not to obscure the related relevantfeature being described. Also, the description is not to be consideredas limiting the scope of the embodiments described herein. The drawingsare not necessarily to scale and the proportions of certain parts havebeen exaggerated to better illustrate details and features of thepresent disclosure.

Several definitions that apply throughout this disclosure will now bepresented.

The term “coupled” is defined as connected, whether directly orindirectly through intervening components, and is not necessarilylimited to physical connections. The connection can be such that theobjects are permanently connected or releasably connected. The term“substantially” is defined to be essentially conforming to theparticular dimension, shape or other word that substantially modifies,such that the component need not be exact. For example, substantiallycylindrical means that the object resembles a cylinder, but can have oneor more deviations from a true cylinder. The term “comprising,” whenutilized, means “including, but not necessarily limited to”; itspecifically indicates open-ended inclusion or membership in theso-described combination, group, series and the like.

The following disclosure is described in relation to an electronicdevice.

FIG. 1 illustrates a function module of one embodiment of an electronicdevice 100. In one embodiment, the electronic device 100 is connected toa connecting device (not shown), the connecting device can be a poweradapter or a device including a general universal serial bus (USB)interface. The electronic device comprises a first universal serial bus(USB) interface 102, a detecting unit 101, a comparing unit 103, acontrol unit 105, a charging circuit 107, and a battery 109. The firstUSB interface 102 is connected to the connecting device to receive aninput signal from the connecting device.

The battery 109 can store energy and supply power signals to theelectronic device 100. The charging circuit 107 is electronicallyconnected to the battery 109 and the first USB interface 102.

The detecting unit 101 is electronically connected to the first USBinterface 102, to detect and determine whether or not the connectingdevice is the power adapter. In one embodiment, the connecting devicecan be a peripheral device which includes a general USB interface.

The comparing unit 103 is electronically connected to the USB interface,and the comparing unit 103 compares voltage of the input signal receivedby the first USB interface 102 with a voltage threshold to output alevel signal. In one embodiment, the comparing unit 103 stores thevoltage threshold.

The control unit 105 is electronically connected to the detecting unit101, the comparing unit 103, and the charging circuit 105. The controlunit 105 controls the battery 109 to be charged by the connecting devicethrough the charging circuit 107 or to supply power to the connectingdevice through the USB interface 102 according to the level signaloutput by the comparing unit 103. In one embodiment, the control unit105 is an embedded controller. In response to the detecting unit 101determining that the connecting device is the power adapter, theelectronic device 100 is in the charging mode, the control unit 105controls the first USB interface 102 to charge the battery 109 throughthe charging circuit 107. In response to the detecting unit 101determining that the connecting device is a peripheral device includinga general USB interface, the electronic device 100 is in general USBinterface mode, and the control unit 105 controls the battery 109 tosupply power to the connecting device through the USB interface 102. Inresponse to the electronic device 100 being in general USB interfacemode, the control unit 105 controls the battery 109 to supply powersignals to the connecting device.

In at least one embodiment, in response to the voltage of the inputsignal of the first USB interface 102 being greater than the voltagethreshold, the comparing unit 103 outputs a first level signal to thecontrol unit 105, the electronic device 100 is in general USB interfacemode, and the control unit 105 controls the battery 109 to supply powersignals to the connecting device. In response to the voltage of theinput signal of the first USB interface 102 being less than the voltagethreshold, the comparing unit 103 outputs a second level signal to thecontrol unit 105, the electronic device 100 is in the charging mode, andthe control unit 105 that the first USB interface 102 to charge thebattery 109 through the charging circuit 107.

FIG. 2 is a circuit diagram of one embodiment of the electronic device100 of FIG. 1. In at least one embodiment, the electronic device 100comprises an USB interface 102, a detecting unit 101, a comparing unit103, a conjugate coil 104, a control unit 105, a charging circuit 107,and a battery 109.

In one embodiment, the detecting unit 101 is a south-bridge chip, thedetecting unit 101 comprises a first port D+, a second port D−, and athird port OC#. The first port D+ and the second port D− detect signalsfrom the connecting device through the conjugate coil 104. The thirdport OC# receives an auxiliary signal (+3.3V_STBY) through a sixth diodeR6. The detecting unit 101 determines whether or not the connectingdevice is a power adapter according to the signals detected by the firstport D+ and the second port D−. When both the signals detected by thefirst port D+ and the second port D− are logic 1 signals, the detectingunit 101 determines that the connecting device is the power adapter.When any one of the signals detected by the first port D+ and the secondport D− is a logic 0 signal, the detecting unit 101 determines that theconnecting device is a peripheral device including the general USBinterface. In one embodiment, a peripheral device including the generalUSB interface cannot charge the battery 109 of the electronic device100.

The comparing unit 103 comprises a comparator U1, a first resistor R1, asecond resistor R2, and a third resistor R3. One end of the firstresistor R1 is electronically connected to the USB interface, the otherend of the first resistor R1 is electronically connected to one end ofthe second resistor R2, the other end of the second resistor R2 isgrounded. The comparator U1 comprises a first input, a second input, andan output. The first input of the comparator U1 receives an auxiliarysignal (+3.3V_STBY) through the third resistor R3, the second input ofthe comparator U1 is electronically connected at a node between thefirst resistor R1 and the second resistor R2, the output of thecomparator U1 is electronically connected to the control unit 105. Inone embodiment, the voltage threshold of the comparing unit 103 isvoltage of the auxiliary signal.

In at least one embodiment, when the detecting unit 101 detects that theconnecting device is the power adapter, the comparing unit 103 outputs alevel signal depending upon comparing the voltage of the auxiliarysignal with voltage of the second resistor R2. The control unit 105controls the electronic device 100 to be the charging mode according tothe level signal output by the comparing unit 103. When the voltage ofthe auxiliary signal is greater than the voltage of the second resistorR2, the electronic device 100 is in the general USB interface mode, thecomparator U1 outputs a logic 0 signal to the control unit 105. Thecontrol unit 105 outputs a logic 0 signal to the charging circuit 107,the charging circuit 107 turns off, and the battery 109 supplies powersignals to the connecting device. When the voltage of the auxiliarysignal is less than the voltage of the second resistor R2, theelectronic device 100 is in the charging mode, and the comparator U1outputs a logic 1 signal to the control unit 105. The control unit 105outputs a logic 1 signal to the charging circuit 107, the chargingcircuit 107 turns on, and the first USB interface 102 charges thebattery 109 through the charging circuit 107.

The charging circuit 107 can comprise a first switch K1, a second switchK2, and a fourth resistor R4. The first switch K1 comprises a firstport, a second port, and a control port. The first port iselectronically connected to the first USB interface 102, the second portis grounded, and the control port is electronically connected to thecontrol unit 105. The second switch K2 comprises a first port, a secondport, and a control port. The first port is electronically connected tothe first USB interface 102, the second port is electronically connectedto the battery 109, and the control port is electronically connected tothe second port of the first switch K1. The fourth resistor R4 iselectronically connected between the first USB interface 102 and thefirst port of the first switch K1. In one embodiment, when theelectronic device 100 is in the charging mode, the control unit 105outputs a logic 1 signal to the first switch K1, and the control port ofthe second switch K2 receives a logic 1 signal. The first port of thethird switch connects to the second port and the connecting devicecharges the battery 109 through the first USB interface 102.

In at least one embodiment, the electronic device 100 can comprise afirst diode D1. The first diode D1 comprises an anode and a cathode. Theanode of the first diode D1 is electronically connected to a nodebetween the first USB interface 102 and the comparing unit 103. Thecathode of the first diode is electronically connected to the chargingcircuit 107. In response to the electronic device being in the generalUSB interface mode, the first diode D1 prevents current of the battery109 from flowing back.

The feedback circuit 111 can be electronically connected to the controlunit 105, the charging circuit 107, and the battery 109, to output afeedback signal to the control unit 105 according to a charging voltageof the battery 109.

In at least one embodiment, the electronic device 100 comprises a thirdswitch K3 and a second diode D2. The third switch K3 comprises a firstport, a second port, and a control port. The first port iselectronically connected to the first USB interface 102, the second portis electronically connected to the detecting unit 101, and the controlport is electronically connected to the control unit 105. The seconddiode D2 is electronically connected between the first USB interface 102and the third switch K3. An anode of the second diode D2 iselectronically connected to the first port of the third switch K3. Whenthe electronic device 100 is in the general USB interface mode, thecontrol unit controls that the first port of the third switch K3connects to the second port.

In one embodiment, the first switch K1, the second switch K2, and thethird switch K3 are transistors. In another embodiment, the first switchK1, the second switch K2, and the third switch K3 are MOSFETs. The typeof the first switch K1, the second switch K2, and the third switch K3can be adjusted according to different conduction demand.

FIG. 3 illustrates a function module of one embodiment of a poweradapter 200. In one embodiment, the power adapter 200 is charging anelectronic device (not shown) according to an external power signal. Thepower adapter 200 comprises a second USB interface 202, a control unit201, and a charging circuit 203. The second USB interface 202 connectsto the electronic device to receive signals from the electronic device.The control unit 201 is electronically connected to the second USBinterface 202, to output a control signal to the charging circuit 203according to level of signals received by the second USB interface 202.The charging circuit 203 is electronically connected to the control unit201 and receives the external power signal to determine whether or notto output the external power signal to the electronic device accordingto the control signal output by the control unit 201. In one embodiment,the external power signal is a 220 volt signal.

FIG. 4 is a circuit diagram of one embodiment of the power adapter 200of FIG. 3. In one embodiment, the control unit 201 comprises a firstport C+, a second port C−, and a control port PON. The first port C+ andthe second port C− of the control unit 201 are electronically connectedto the second USB interface 202, to receive the level signals from theelectronic device.

In at least one embodiment, the power adapter 200 comprises a seventhresistor R7, an eighth resistor R8, and an auxiliary power port+3.3V_ADP. One end of the seventh resistor R7 and one end of the eighthresistor R8 is electronically connected to the auxiliary power port+3.3V_ADP. The other end of the seventh resistor R7 is electronicallyconnected to the second port C− of the control unit 201. The other endof the eighth resistor R8 is electronically connected to the first portC+ of the control unit 201.

The charging circuit 203 comprises a fourth switch K4, a fifth switchK5, and a fifth resistor R5. The fourth switch K4 comprises a firstport, a second port, and a control port. The second port is grounded andthe control port is electronically connected to the control port PON ofthe control unit 201. The fifth switch K5 comprises a first port, asecond port, and a control port. The first port of the fifth switch K5receives the external power signal. The second port of the fifth switchK5 is electronically connected to the second USB interface 202. Thecontrol port of the fifth switch K5 is electronically connected to thefirst port of the fourth switch K4. The fifth resistor R5 comprises afirst end and a second end. The first end of the fifth resistor R5 iselectronically connected to a node between the first port of the fourthswitch K4 and the control port of the fifth switch K5. The second end ofthe fifth resistor R5 is electronically connected to the first port ofthe fifth switch K5.

In at least one embodiment, when the first port C+ and the second portC− of the control unit 201 receive logic 1 signals. The control port PONof the control unit 201 outputs a logic 1 signal to the charging circuit203, controlling the charging circuit 203 to output the external powersignal to the electronic device.

FIG. 5 is a circuit diagram of one embodiment of a combination of theelectronic device 100 of FIG. 2 and the power adapter 200 of FIG. 4. Inone embodiment, the power adapter 200 charges the electronic device 100through the first USB interface 102 and the second USB interface 202.The first USB interface 102 of the electronic device 100 charges fromthe power adapter 200.

In one embodiment, the electronic device 100 is a laptop or anelectronic book or a device including an USB interface.

The electronic device 100 comprises the first USB interface 102, thedetecting unit 101, the comparing unit 103, the conjugate coil 104, thecontrol unit 105, the charging circuit 107, and the battery 109. Thefirst USB interface 102 of the electronic device 100 charges from thepower adapter 200.

Many details are often found in the art such as the other features of ashielding plate. Therefore, many such details are neither shown nordescribed. Even though numerous characteristics and advantages of thepresent technology have been set forth in the foregoing description,together with details of the structure and function of the presentdisclosure, the disclosure is illustrative only, and changes may be madein the detail, including in matters of shape, size and arrangement ofthe parts within the principles of the present disclosure up to, andincluding the full extent established by the broad general meaning ofthe terms used in the claims. It will therefore be appreciated that theembodiments described above may be modified within the scope of theclaims.

What is claimed is:
 1. An electronic device comprising: a first universal serial bus (USB) interface electrically connected to a connecting device, configured to receive an input signal from the connecting device, wherein the connecting device is a power adapter or a peripheral device including a general USB interface; a battery; a charging circuit electrically connected to the battery and the first USB interface; a detecting unit electrically connected to the first USB interface, configured to detect and determine whether the connecting device is the power adapter; a comparing unit electrically connected to the first USB interface, configured to output a level signal depending upon comparing the input signal received by the first USB interface with a voltage threshold; and a control unit electrically connected to the detecting unit, the comparing unit, and the charging circuit, and configured to control the battery to be charged by the connecting device through the charging circuit or to supply power to the connecting device through the first USB interface, depending on the signal level output by the comparing unit.
 2. The electronic device of claim 1, wherein in response to the voltage of the input signal received by the first USB interface being greater than the voltage threshold, the detecting unit determines that the connecting device is the power adapter.
 3. The electronic device of claim 2, wherein in response to determining that the connecting device is the power adapter, the detecting unit sends a signal to the connecting device to control the connecting device to supply power to the electronic device.
 4. The electronic device of claim 1, wherein in response to the voltage of the input signal received by the first USB interface being less than the voltage threshold, the detecting unit determines that the connecting device is not the power adapter.
 5. The electronic device of claim 4, wherein in response to determining that the connecting device is not the power adapter, the control unit controls the battery to supply power to the connecting device through the first USB interface.
 6. The electronic device of claim 1, further comprising: a feedback circuit electronically connected the control unit, the charging circuit, and the battery, to output a feedback signal to the control unit according to a charging voltage of the battery.
 7. The electronic device of claim 1, further comprising: a first switch comprising a first port, a second port, and a control port, wherein the first port is electronically connected to the first, the second port is electronically connected to the detecting unit, the control port is electronically connected to the control unit; wherein in response to the detecting unit determining that the connecting device is the power adapter, the control unit controls the first port of the first switch to connect to the second port.
 8. The electronic device of claim 1, further comprising: a diode comprising an anode and a cathode, the anode of the diode is electronically connected to a node between the first USB interface and the comparing unit, the cathode of the diode is electronically connected to the charging circuit; wherein in response to the detecting unit determining that the connecting device is not the power adapter, the diode prevents current of the battery flowing back.
 9. The electronic device of claim 1, wherein the detecting unit comprises: a first port and a second port, to determine whether or not the connecting device is the power adapter according to detecting signals of the first port and the second port; wherein in response to both the detecting signal of the first port and the detecting signal of the second port being logic 1 signals, the detecting unit determines that the connecting device is the power adapter.
 10. The electronic device of claim 1, wherein the charging circuit comprises: a second switch with a first port electronically connected to the first USB interface, a second port grounded, and a control port electronically connected to the control unit; a third switch with a first port electronically connected to the first USB interface, a second port electronically connected to the battery, and a control port electronically connected to the second port of the second switch; wherein in response to the connecting device being the power adapter, the control unit outputs a logic 1 signal to the second switch, the control port of the second switch receives the logic 1 signal, the control port of the second switch receives a logic 1 signal from the second switch, the first port of the third switch connects to the second port, and the connecting device charges the battery through the first USB interface.
 11. A power adapter charging an electronic device according to an external power signal, the power adapter comprising: an universal serial bus (USB) interface connected to the electronic device, to receive level signals from the electronic device; a control unit electronically connected to the USB interface, to output a control signal according to the level signals received by the USB interface; and a charging circuit electronically connected to the control unit and receiving the external power signal, to determine whether or not to output the external power signal to the electronic device according to the control signal outputted by the control unit.
 12. The power adapter of claim 12, wherein the control unit comprises: a first port and a second port, the first port and the second port of the control unit electronically connected to the USB interface, to receive the level signals from the electronic device; wherein in response to the first port and the second port of the control unit being logic 1 signals, the control unit controls that the charging circuit outputs the external power signal to the electronic device.
 13. The power adapter of claim 12, wherein the charging circuit comprises: a first switch with a first port, a second port grounded, a control port electronically connected to the control unit; a second switch with a first port receiving the external power signal, a second port electronically connected to the USB interface, a control port electronically connected to the first port of the first switch; and a resistor comprising a first end and a second end, wherein the first end of the resistor is electronically connected to a node between the first port of the first switch and the control port of the second switch, the second end of the resistor is electronically connected to the first port of the second switch. 